<!DOCTYPE html>
<html>
    <head>
        <title>TMT - <?php echo $headline; ?></title>
        <?php
        $css[] = base_url() . 'css/bootstrap.css';
        $css[] = base_url() . 'css/template.css';
        $css[] = base_url() . 'css/gradient.css';
        $css[] = base_url() . 'css/dev_css/user-properties.css';
        $css[] = base_url() . 'css/dev_css/team-overview.css';
        $css[] = base_url() . 'css/icons.css';
        if (isset($css))
            foreach ($css as $css_item)
                echo link_tag($css_item);


        echo '<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>';
        echo '<script type="text/javascript" src="' . base_url() . '/js/tmt_scripts.js"></script>';
        echo '<script type="text/javascript" src="' . base_url() . '/js/bootstrap.js"></script>';
        echo '<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />';
        echo '<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>';

        /* echo '<script type="text/javascript" src="js/jquery-1.8.1.js"></script>'; ?>

          <!--<script type="text/javascript" src="../js/bootstrap.js"></script>-->
          <script type="text/javascript">
          $(document).ready(function() {
          $('.badge-newemployer').tooltip();
          $('#nav li a').click(function() {
          $(this).siblings('ul').eq($(this).index()).toggle('fast');
          return false;
          });

          });


          </script>
         */
        ?>	
    </head>
    <body>
        <!-- Header Begin-->
        <div class="row-fluid">
            <div id="header" class="span12">
                <h3 class="tmt_ws">Training Management Tool</h3>
                <table>
                    <tr><td>Eingeloggt als: <?php echo isset($username) ? anchor('user', $username) : 'N/A'; ?></td></tr>
                    <tr><td><!--<a href="#">Benachrichtigungen: <span class="label label-important" style="padding:0px 2px;">1</span></a>--></td></tr>
                    <tr><td class="btn-group"><?php echo anchor('user', 'Einstellungen', 'class="btn btn-mini"'); ?><?php echo anchor('auth/logout', 'Ausloggen', 'class="btn btn-mini"'); ?></td></tr>
                    <tr><td><img src="<?php echo base_url() . 'img/tsy_logo.png'; ?>" alt="T-Systems Logo"></td></tr>
                </table>
            </div>
        </div>
        <!-- Header Ende -->

        <!--Main Begin -->
        <div class="row-fluid">
            <!-- Navigation  -->
            <?php //$this->load->view('template/navi'); ?>

            <div class="span2">
                <?php
                //HTML Helper function 'ul' creates list
                echo isset($navigation) ? ul($navigation, array('id' => 'nav')) : 'No Navigation';
                ?>
                
                <div id="support">
                    <h4>Hilfe und Support</h4>
                    
                    <p>Hier gehts zur: <?php echo anchor('/help', 'Info und Supportpage'); ?></p>
                    <hr style="margin:0; margin-bottom:10px">
                    <b>Telefon: </b>
                    <span>+49 6151 581 6330</span><br >
                    <b>E-Mail: </b><span><?php echo mailto('carolin.hansch@t-systems.com'); ?></span><br >
                </div>
            </div>
            <!-- Navigation End -->

            <!-- Content Begin -->
            <?php
            if (isset($show_sidebar) && TRUE === $show_sidebar)
                echo '<div class="span8">';
            else
                echo '<div class="span10">';
            ?>
            <div id="content">
                <h3 id="content_header"><?php echo isset($headline) ? $headline : 'No Headline!'; ?></h3>
                <?php
                if (isset($content_view)) {
                    if (isset($content_data)) {
                        $this->load->view($content_view, $content_data);
                    } else {
                        $this->load->view($content_view);
                    }
                }

                if (isset($yield)) {
                    echo $yield;
                }
                ?>
            </div>
            <p id="footer">T-Systems Training Management Tool(TMT) - 2012</p>
            <p id="footer">Time: <?= $benchmark ?></p>
        </div>
        <!-- Content End -->	
        <!-- Sidebar Begin -->
<?php
if (isset($show_sidebar) && TRUE === $show_sidebar) {
    $this->load->view('template/sidebar', $sidebardata);
}
?>	
        <!-- Sidebar Ende -->


        <!-- Main Ende -->
    </div>
</body>
</html>
